﻿using System;
using Microsoft.Dss.Core.Attributes;
using Microsoft.Dss.Core.Transforms;

#if NET_CF20
[assembly: ServiceDeclaration(DssServiceDeclaration.Transform, SourceAssemblyKey = @"cf.drives.y2008.m05, version=0.0.0.0, culture=neutral, publickeytoken=56cbb3b236e51ede")]
#else
[assembly: ServiceDeclaration(DssServiceDeclaration.Transform, SourceAssemblyKey = @"drives.y2008.m05, version=0.0.0.0, culture=neutral, publickeytoken=56cbb3b236e51ede")]
#endif
#if !URT_MINCLR
[assembly: System.Security.SecurityTransparent]
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif

namespace Dss.Transforms.TransformDrives
{

    public class Transforms: TransformBase
    {

        public static object Transform_Robotics_Drives_Proxy_DrivesState_TO_Robotics_Drives_DrivesState(object transformFrom)
        {
            Robotics.Drives.DrivesState target = new Robotics.Drives.DrivesState();
            Robotics.Drives.Proxy.DrivesState from = transformFrom as Robotics.Drives.Proxy.DrivesState;
            target.Counter = from.Counter;
            return target;
        }


        public static object Transform_Robotics_Drives_DrivesState_TO_Robotics_Drives_Proxy_DrivesState(object transformFrom)
        {
            Robotics.Drives.Proxy.DrivesState target = new Robotics.Drives.Proxy.DrivesState();
            Robotics.Drives.DrivesState from = transformFrom as Robotics.Drives.DrivesState;
            target.Counter = from.Counter;
            return target;
        }

        static Transforms()
        {
            Register();
        }
        public static void Register()
        {
            AddProxyTransform(typeof(Robotics.Drives.Proxy.DrivesState), Transform_Robotics_Drives_Proxy_DrivesState_TO_Robotics_Drives_DrivesState);
            AddSourceTransform(typeof(Robotics.Drives.DrivesState), Transform_Robotics_Drives_DrivesState_TO_Robotics_Drives_Proxy_DrivesState);
        }
    }
}

